import { Rule, RuleType } from '@midwayjs/validate';
import { ApiProperty } from "@midwayjs/swagger";
export class StudentsinfoDTO {
    //  swagger 的传参预设 example:约束  ,             description : 说明
  @ApiProperty({ example: '清华', description: '学生姓名'})
  @Rule(RuleType.string().required())
  name: string;
    // required 必填
  @ApiProperty({ example: '内容', description: '标题下面的文字'})
  @Rule(RuleType.string().required())
  content: string;
    // required 必填
  @ApiProperty({ example: 'http://tup', description: '图片'})
  @Rule(RuleType.string().required())
  url: string;
  @ApiProperty({ example: 'http://tup', description: '图片'})
  @Rule(RuleType.string().required())
  title: string;
    // required 必填
}